package com.ruoyi.cat.domain.VO;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class WithdrawVO {


    @ApiModelProperty("提现金额")
    @NotNull(message = "提现金额不能为空")
    @Min(value = 0, message = "提现金额必须大于0")
    @Digits(integer = 10, fraction = 2, message = "金额格式不正确")
    private BigDecimal withdrawalAmount;


    @ApiModelProperty("1支付宝2微信")
    private String method;

    @ApiModelProperty("姓名")
    private String fullName;

    @ApiModelProperty("账号")
    private String accountNumber;

    private Long userId;
}
